package com.weipai.springboot.module.service;

import com.weipai.springboot.model.ProductProperty;
import com.weipai.springboot.model.PropertyOption;
import com.weipai.springboot.model.api.Response;

import java.util.Map;
import java.util.UUID;

/**
 * @Author: 曹朋飞
 * @Date: 2018/08/21 16:51
 */
public interface ProductPropertyService {

    //保存货品类别属性
    Response save(ProductProperty productProperty, String propertyOptionValue);

    //修改
    Response update(String id, String propertyName, String[] propertyOptionValue);

    //查询详情
    Response getProductPropertyById(String id);

    //删除
    Response deleteById(String id);

    //批量删除
    Response batchDeleteById(String[] id);

    //更改状态
    Response changeStatus(String id, Integer status);

    //分页查询
    Response selectAllByProductCategoryId(Integer page, Integer size, String draw, String productCategoryId);

    //通过第三级的商品分类获取到属性与属性选项
    Response getOptionByProductCategoryId(String id, String spuNumber, String type);

    //通过产品的id来查询出此商品下面的所有属性和属性选项
    Response getOptionByProductId(String productId, String spuNumber, String type);


}
